import java.util.HashMap;
import java.util.Map;

public class Solution {
    public int lengthOfLongestSubstring(String s) {

    }

    public static void main(String[] args) {
        Solution s = new Solution();
        int res = s.lengthOfLongestSubstring("abcbca");
        System.out.println(res);
    }
}